import 'package:flutter/material.dart';

class MyApp7 extends StatelessWidget {
  const MyApp7({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('COLUMN 组件'),
        // 文字颜色
        foregroundColor: Colors.white,
        backgroundColor: Colors.purple,
        // 文字居中
        centerTitle: true,
      ),
      body: Container(
        child: Container(
          height: 120,
          color: Colors.red,
          width: MediaQuery.of(context).size.width,
          child: Row(
              // mainAxisSize: MainAxisSize.max,
              // mainAxisAlignment: MainAxisAlignment.spaceAround,
              // crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Expanded(
                  flex: 1,
                  child: Row(
                    children: [
                      Image.network(
                          'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                          width: 86),
                      const Text('茶水分离杯耐热隔热玻璃  000')
                    ],
                  ),
                ),
                Expanded(
                  flex: 1,
                  child: Row(
                    children: [
                      Image.network(
                          'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                          width: 86),
                      const Text('茶水分离杯耐热隔热玻璃  000')
                    ],
                  ),
                ),
              ]),
        ),
      ),
    );
  }
}
